#ifndef TPLCONFIG_H
#define TPLCONFIG_H

#include <QObject>
#include <QIODevice>
#include <QDebug>
#include <QStringList>

class TplConfig : public QObject {
    Q_OBJECT
public:
    explicit TplConfig(QObject *parent = 0);
private:
    static TplConfig* m_config;

signals:

public slots:
    int parseConfig(const QIODevice &inputSource);
    int parseCommandLine(int argc, char *argv[]);
    bool configFileExists() const;

    bool noErr() const;
    bool noWarn() const;
    bool noDebug() const;

    static TplConfig* getConfig();

protected:
    QStringList inputList;
    QStringList templateList;
    QString outputFile;

    bool m_noErr;
    bool m_noWarn;
    bool m_noDebug;
};

#endif // TPLCONFIG_H
